package com.phkj.qdh.ui.adapter

import android.content.Context
import android.view.ViewGroup
import com.chad.library.adapter4.BaseQuickAdapter
import com.chad.library.adapter4.viewholder.QuickViewHolder
import com.phkj.qdh.R
import com.phkj.qdh.bean.DeptTreeVoList

class EmployeeDepartmentAdapter: BaseQuickAdapter<DeptTreeVoList,QuickViewHolder>() {
    override fun onBindViewHolder(holder: QuickViewHolder, position: Int, item: DeptTreeVoList?) {
        holder.setText(R.id.tv,item?.name)
    }

    override fun onCreateViewHolder(
        context: Context,
        parent: ViewGroup,
        viewType: Int
    ): QuickViewHolder {
     return QuickViewHolder(R.layout.item_failover_reduce_type,parent)
    }
}